// aboutdlg.cpp : implementation of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////

#include "stdafx.h"

#include <cm/Windows/AboutCtrl.h>

#include "resource.h"
#include "aboutdlg.h"

CAboutDlg::CAboutDlg() : m_AboutCtrl(0,IDB_BITMAP3)
{
	CString strCredits;
	strCredits.LoadString(IDS_CREDITS);
	m_AboutCtrl.SetCredits(strCredits);
}

LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
	CenterWindow(GetParent());

	m_AboutCtrl.SubclassWindow(GetDlgItem(IDC_ABOUT_CTRL));

	return TRUE;
}

LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
	EndDialog(wID);
	return 0;
}
